﻿var languageHelper;
$(function () {
    $.ajax({
        url: ctx + '/Main/GetUserUnitTreeData',
        type: "post",
        async: false,
        dataType: 'json',
        success: function (mess) {
            if (mess.Statu === 0) {
                languageHelper = mess.Data;
            } else
                layer.open({
                    shade: false,
                    title: false,
                    content: mess.Msg,
                    btn: ''
                });
        },
        error: function () {
            layer.msg('data exception~', { icon: 5 });
        }
    });
});